﻿<%@ Page Language="C#" MasterPageFile="~/MasterALSafa.Master"AutoEventWireup="true"
    CodeBehind="SRV_BOOKS_PRICING.aspx.cs" Inherits="School.Pages.BOOKS.SRV_BOOKS_PRICING" %>

<%@ Register Src="../UserControls/CampusPackage.ascx" TagName="CampusPackage" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <table align="right" dir="rtl">
                    <tr>
                        <td colspan="2">
                            <uc1:CampusPackage ID="CampusPackage1" runat="server" />
                        </td>
                        <td>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" style="color: Green">
                            <asp:Literal ID="lblResult" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:GridView ID="gvData" runat="server" Width="100%" DataKeyNames="book_Id" AutoGenerateColumns="False"
                                CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
                                PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
                                <AlternatingRowStyle CssClass="GridItemAltername" />
                                <Columns>
                                    <asp:BoundField DataField="Code" HeaderText="الكود" >
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Descrption" HeaderText="الوصف" >
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="BookName" HeaderText="الكتاب" >
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="السعر" >
                                        <ItemTemplate>
                                            <table>
                                                <tr>
                                                    <td style="padding-right: 70px;">
                                                        <asp:TextBox ID="txtPrice" runat="server" onkeypress="return FilterFloat(this, event)"
                                                            Text='<%# Bind("Price") %>'></asp:TextBox>
                                        
                        </td>
                    </tr>
                </table>
                                      </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                     </asp:TemplateField>
                                </Columns>
                                <FooterStyle CssClass="GridHeaderFooter" />
                                <HeaderStyle CssClass="GridHeaderFooter" />
                                <PagerStyle CssClass="GridPager" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" style="height: 50px; vertical-align: middle; padding-right: 150px;">
                            <asp:Button ID="btnSaveChanges" CssClass="graybutton" Width="120" runat="server"
                                Text="حفظ" OnClick="btnSaveChanges_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
